package com.chu.service.impl;

import com.chu.dao.UserDao;
import com.chu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public void transferMoney(Integer addUserId, Integer subUserId, Integer money) {
        userDao.addMoney(addUserId, money);
        userDao.subMoney(subUserId, money);
    }
}
